﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/default.master" AutoEventWireup="true" CodeFile="MyEventList.aspx.cs" Inherits="Pages_Usercenter_MyEventList" %>

<%@ Register src="../../Misc/Control/MyAccount.ascx" tagname="MyAccount" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title>我的活动</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="main2"> 
 <div class="main_l">              
  	<!--左侧部分 开始-->
		<div class="dingd_top">
			<ul>
				<li class="navon"><a href="MyOrderList.aspx"><span>我的订单</span></a></li>
				<li><a href="MyEventList.aspx"><span>我的活动</span></a></li>
				<li class="navon"><a href="MyAddressList.aspx"><span>地址簿</span></a></li>
				<li class="navon"><a href="MyReviewList.aspx"><span>我的留言</span></a></li>
			</ul>
		</div>
		<div class="l_area3">	
			<div class="dingd">
				<ul>
					<li class="dingd_10 fb">活动名称</li>
					<li class="dingd_11 fb">订单时间</li>
					<li class="dingd_12 fb">奖励金额</li>
				</ul>
				<pan:SmartGridView ID="panGdvOrderList" runat="server"  BorderWidth="0"
                AutoGenerateColumns="False" DataSourceID="odsEventList" AllowPaging="True" 
                    PageSize="10" >
                <Columns>
                <asp:TemplateField>
                <ItemTemplate >
                <ul class="dingd_gray">
					<li class="dingd_10 fb"><%# Eval("EventName") %></li>
					<li class="dingd_11 fb"><%#Eval("CreateOn")  %></li>
					<li class="dingd_12 fb"><%#Eval("Amount") %></li>
					</ItemTemplate>
				</asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <EmptyDataTemplate>
        <div style='text-align:left;margin-left:20px; width:600px;margin-bottom:10px;'>
		   <p style='color:#FF4E00;font-size:14px;font-weight:bold;'> 你还没有参加活动 ！<br /><br /></p>
		</div>
        </EmptyDataTemplate>
        <CustomPagerSettings PagingMode="Webabcd" TextFormat="每页{0}条/共{1}条  第{2}页/共{3}页   " />
        <PagerSettings Position="Bottom" PageButtonCount="13" FirstPageText="首页" PreviousPageText="上一页"
            NextPageText="下一页" LastPageText="末页" />
         <AlternatingRowStyle BackColor="#DCDCDC" />
         <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
                </pan:SmartGridView>
				 <asp:ObjectDataSource ID="odsEventlist" runat="server" 
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetListByEmail" 
        TypeName="Tuan.BLL.Event">
        <SelectParameters>
            <asp:ControlParameter ControlID="hdUserName" Name="Email" PropertyName="Value" 
                Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
			</div>
			<div class="blank25"></div>
			<div class="dingd_right">活动奖励总计：<em><%=total %>元</em></div>
		<div class="blank25"></div>
		</div>
		<div class="l_bot">
            
     </div>
	<!--左侧部分 结束--> </div> 
 <uc1:MyAccount ID="MyAccount1" runat="server" />
	<DIV class="go-top"><A href="#uptop">↑顶部</A></DIV></div>
<asp:HiddenField   ID="hdUserName" runat="server" />
</asp:Content>

